<!DOCTYPE html>
<html>
<head>
    <title>车辆信息表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.carNum" @keyup.enter="query" placeholder="车牌号">
            </div>
            <a class="btn btn-default" @click="query">查询</a>

            <#if shiro.hasPermission("sys:user:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:user:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:user:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">注册企业代码+自行定义代码</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="infoManager.carInerCode" placeholder="注册企业代码+自行定义代码"/>
                </div>
            </div>
							                    <div class="form-group">
                        <div class="col-sm-2 control-label">车架子号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="infoManager.vehicleNumber" placeholder="车架子号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">车牌号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="infoManager.carNum" placeholder="车牌号"/>
                        </div>
                    </div>

																		                    <div class="form-group">
                        <div class="col-sm-2 control-label">加油卡号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="infoManager.oilCardNum" placeholder="加油卡号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">交强险单号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="infoManager.tci" placeholder="交强险单号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">其他保单信息</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="infoManager.otherInsurance_policy" placeholder="其他保单信息"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">保单生效时间</div>
                        <div class="col-sm-10">
                            <input type="text" id="billEffective_time"  class="form-control" v-model="infoManager.billEffective_time" placeholder="保单生效时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否可以运输危险品</div>
                        <div class="col-sm-10">
                        <select class="form-control" v-model="infoManager.ifDangerousGoods">
							<option value="否">否</option>
							<option value="是">是</option>
						</select>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">危险品运营证时间</div>
                        <div class="col-sm-10">
                            <input type="text" id="dangerousGoodsDate" class="form-control" v-model="infoManager.dangerousGoodsDate" placeholder="危险品运营证时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">有效期</div>
                        <div class="col-sm-10">
                            <input type="text" id="effectDate" class="form-control" v-model="infoManager.effectDate" placeholder="有效期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">（1自有、2挂靠、3临时）</div>
                        <div class="col-sm-10">
                        <select class="form-control" v-model="infoManager.vehicleType">
							<option value="自有">自有</option>
							<option value="挂靠">挂靠</option>
							<option value="临时">自有</option>
						</select>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">车辆年审时间</div>
                        <div class="col-sm-10">
                            <input type="text" id="inspectAnnually" class="form-control" v-model="infoManager.inspectAnnually" placeholder="车辆年审时间"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" />

<script src="https://cdn.bootcss.com/moment.js/2.24.0/moment.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
<script src="${request.contextPath}/statics/js/modules/sys/infomanager.js?_${.now?long}"></script>

</body>
</html>